package org.zcq100.test;

import static org.zcq100.Print.*;
import org.zcq100.db.DAO.*;
import java.sql.*;

public class Demo{
	public static void main(String[] args){
		//Statement state=null;
		PreparedStatement state=null;
		ResultSet  res=null;
		Connection conn=DBManager.getConnection();
		try {
			//state=conn.createStatement();
			//res=state.executeQuery("select * from menbers");
			state=conn.prepareStatement("select * from menbers");

			res=state.executeQuery();
			while(res.next()){
				println(res.getInt("id")+"\t"+res.getString("name")+"\t"+res.getBoolean("sex"));
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}

	
	
	}
	
}
